package io.geekidea.springbootplus.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.geekidea.springbootplus.system.entity.SysShare;
import io.geekidea.springbootplus.system.vo.SysShareQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SysShareMapper extends BaseMapper<SysShare> {
    //插入分享信息
    Integer insertSysShare(SysShare sysShare);

    //查询分享信息
    List<SysShareQueryVo> selectSysShare();

    //分页
    IPage<SysShareQueryVo> getSysSharePageList(@Param("page") Page page);

}
